LATEX=pdflatex

lab-script.pdf: lab-script.tex
	$(LATEX) $<

# Make a 'demonstrator' version of the script
# The --jobname is necessary for luatex when the input file is include using \input.
lab-script-demonstrator.pdf: lab-script.tex
	$(LATEX) --jobname lab-script '\def\demonstrator{x}\input{lab-script}'
	mv lab-script.pdf $@
